﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Linq;
using System.Text;
using DevExpress.XtraEditors;
using DTD2013.Common;

namespace DTD2013.DTDComponent
{
    public partial class DTDDateEditControl : DateEdit
    {
        public DTDDateEditControl()
        {
            InitializeComponent();
            InitializeControl();
        }

        public DTDDateEditControl(IContainer container)
        {
            container.Add(this);

            InitializeComponent();
            InitializeControl();
        }

        private void InitializeControl()
        {
            Properties.DisplayFormat.FormatString = FormatString.DateFormatString;
            Properties.EditFormat.FormatString = FormatString.DateFormatString;
            Properties.EditMask = FormatString.DateFormatString;
        }
    }
}
